package config_order.config;

import config_order.bean.Bean1;
import config_order.bean.Bean2;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * 描述：构造器注入
 *
 * @author 🧑 ‍wanwei
 * @since 2023-04-04 17:13
 */
@Component
@AllArgsConstructor
public class ConstructorDemo {

	private final Bean1 getBean1;

	private final Bean2 bean2;

	@PostConstruct
	private void init(){
		System.out.println(getBean1);
		System.out.println(bean2);
	}
}
